/*
 *  $Id: WoodlandEnergy.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Earth.Spells {
    public class WoodlandEnergy: SpellCard {
        public WoodlandEnergy(): base("001_e_s_woodland_energy") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Earth;
            Value = 100;
            AddManaCost(ElementType.Earth, 1);
        }

        public override void DoAction(TargetArgs args) {
            int count = 0;
            foreach (Land land in args.Player.Lands)
                if (land.Card.Element == ElementType.Earth)
                    count++;
            args.Player.IncrementMana(ElementType.Earth, count);
        }
    }
}
